<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>dialog</title><!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
</head>
<body>
   <div id="app">
     <el-button @click="visible=true">按钮</el-button>
     <el-dialog :visible.sync="visible" title="Hello world">
       <p>欢迎使用 Element</p>
     </el-dialog>
   </div>
</body>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script>
  new Vue({
    el: '#app',
    data: function (){
      return {
        visible: false
      }
    }
  })
</script>
</html>
